package com.ganzi.manager.activiti.model;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.ganzi.manager.base.BaseModel;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * 表单信息
 * @since 2019-05-23
 */
@Data
@Builder
@EqualsAndHashCode(callSuper = true)
@TableName("business_information")
public class BusinessInformation extends BaseModel<BusinessInformation> {


    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 流程实例id
     */
    private String processId;
    /**
     * 任务id
     */
    private String taskId;
    /**
     * 审批人
     */
    private String assignee;
    /**
     * 具体数据
     */
    private String data;

    /**
     * 是否是发起人  1--是  0--不是
     */
    private int isInitiator;

    /**
     * 关联的表单id
     * */
    private String formKey;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
